const userRoutes = [
  {
    name: "user",
    path: "/user",
    component: () => import("@/views/user/index.vue"),
    meta: {
      requiresAuth: true, // 是否需要判断是否登录
    },
    children: [
      {
        name: "rz",
        path: "rz",
        component: () => import("@/views/user/rz/index.vue"),
      },
      {
        name: "user_info",
        path: "user_info",
        component: () => import("@/views/user/user_info.vue"),
      },
      {
        name: "money",
        path: "money",
        component: () => import("@/views/user/payout/index.vue"),
      },
      {
        name: "pay",
        path: "pay",
        component: () => import("@/views/user/pay.vue"),
      },
      {
        name: "payout",
        path: "payout",
        component: () => import("@/views/user/payout/payout.vue"),
      },
      {
        name: "bindAlipay",
        path: "bindAlipay",
        component: () => import("@/views/user/bindAlipay.vue"),
        meta: {
          requiresAuth: true
        }
      },
      {
        name: "bindPhone",
        path: "bindPhone",
        component: () => import("@/views/user/bindPhone.vue"),
        meta: {
          requiresAuth: true
        }
      },
      {
        name: "bindBank",
        path: "bindBank",
        component: () => import("@/views/user/bindBank.vue"),
        meta: {
          requiresAuth: true
        }
      },
      {
        name: "payout_record",
        path: "payout_record",
        component: () => import("@/views/user/payout/payout_record.vue"),
      },
      {
        name: "flow",
        path: "flow",
        component: () => import("@/views/user/payout/flow"),
      },
      {
        name: "ts",
        path: "ts",
        component: () => import("@/views/user/ts.vue"),
      },
      {
        name: "zxUser",
        path: "zxUser",
        component: () => import("@/views/user/zxUser.vue"),
        meta: {
          requiresAuth: true
        }
      },
      {
        name: "recommend",
        path: "recommend",
        component: () => import("@/views/user/recommend.vue"),
        meta: {
            requiresAuth: true
          }
      },
      {
        name: "recommend_list",
        path: "recommend_list",
        component: () => import("@/views/user/recommend_list.vue"),
        meta: {
            requiresAuth: true
          }
      },
      {
        name: "fall",
        path: "fall",
        component: () => import("@/views/user/fall.vue"),
        meta: {
            requiresAuth: true
          }
      },
      {
        name: "add_fall",
        path: "add_fall",
        component: () => import("@/views/user/add_fall.vue"),
        meta: {
            requiresAuth: true
          }
      }
    ],
  },
  {
    name: "account",
    path: "/account",
    component: () => import("@/views/user/account/index.vue"),
  },
  {
    name: "edit_user",
    path: "/edit_user/:id",
    component: () => import("@/views/user/account/edit_user.vue"),
  },
  {
    name: "add_user",
    path: "/add_user",
    component: () => import("@/views/user/account/add_user.vue"),
  },
  {
    name: "check_user",
    path: "/check_user/:id",
    component: () => import("@/views/user/account/check_user.vue"),
  },
];
export default userRoutes;
